import { ref } from 'vue'
import { defineStore } from 'pinia'
import { geHeaderService } from '@/api/Layout'
export const useCategoryStore = defineStore('category', () => {
    // 获取导航的数据
    const HeaderList = ref([])
    // 获取导航数据的逻辑
    const geHeader = async () =>{
        const res = await geHeaderService()
        HeaderList.value = res.data.result
  } 
  return {
    HeaderList,
    geHeader
  }
})
